<table width="100%" height="33" bgcolor="#537BAC">
            	<tr>
                	<td width="598"><font color="#FFFFFF" size="+1"><b>Danh Sách Sản Phẩm Mới</b></font></td>
                </tr>
            </table>
<?php
	$sql = "select * from dt order by ngaynhaphang desc limit 0,9 ";
	$result = DataProvider::ExecuteQuery($sql);
	$i = 1;
	$col = 3;
	while($row = mysql_fetch_array($result))
	{
		if($i == 1)
			echo '<div class="dong">';
		
		include("pages/tempDT.php");
		
		if($i == $col)
		{
			echo '</div>';
			$i = 1;
		}
		else
			$i++;
	}
	if($i > 1 && $i <= $col)
		echo '</div>';
?>
<table width="100%" height="33" bgcolor="#537BAC">
            	<tr>
                	<td width="598"><font color="#FFFFFF" size="+1"><b>Danh Sách Sản Phẩm Bán Chạy</b></font></td>
                </tr>
            </table>
           
<?php
	$sql = "select * from dt order by SoLuongBan desc limit 0,9";
	$result = DataProvider::ExecuteQuery($sql);
	$i = 1;
	$col = 3;
	while($row = mysql_fetch_array($result))
	{
		if($i == 1)
			echo '<div class="dong">';
		
		include("pages/tempDT.php");
		
		if($i == $col)
		{
			echo '</div>';
			$i = 1;
		}
		else
			$i++;
	}
	if($i > 1 && $i <= $col)
		echo '</div>';
?>